﻿@model FinancasMD.Models.Carteira

@{
    ViewBag.Title = "Adicionar";
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Adicionar Carteira</title>
</head>
<body>
@using (Html.BeginForm("Adicionar", "Carteira", FormMethod.Post, new { @class = "form-horizontal" }))
{
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)
    
        <fieldset>
            <legend>Carteira</legend>
    
            <div class="editor-label">@Html.LabelFor(model => model.Descricao)</div>
            <div class="editor-field">@Html.TextBoxFor(model => model.Descricao, new { @class = "form-control" })@Html.ValidationMessageFor(model => model.Descricao)</div>
    
            <div class="editor-label">@Html.LabelFor(model => model.Saldo)</div>
            <div class="editor-field">@Html.TextBoxFor(model => model.Saldo, new { @class = "form-control" })@Html.ValidationMessageFor(model => model.Saldo)</div>
    
            <p>
                <input type="submit" value="Gravar" class="btn btn-primary" />
            </p>
        </fieldset>
    }
    
    <div>
        @Html.ActionLink("Back to List", "Index")
    </div>
</body>
</html>
